package cn.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author cyx
 * @since 2024-12-11
 */
@TableName("t_address")
@Data  //生成getter、setter
@NoArgsConstructor  //无参构造
@AllArgsConstructor //全参构造
@ToString   //生成toString
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Address implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 送货地址编号
     */
    @TableId(value = "addressId", type = IdType.AUTO)
    private Integer addressId;

    /**
     * 收货人姓名
     */
    private String contactName;

    /**
     * 联系人性别
     */
    private String contactGender;

    /**
     * 联系人电话
     */
    private String contactTel;

    /**
     * 送货地址
     */
    private String address;

    /**
     * 所属用户编号
     */
    private Integer userId;

}
